﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class TiposcambioFact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As TiposcambioBE
        Dim tmpTiposcambio As TiposcambioBE = New TiposcambioBE()
        Try
            With tmpTiposcambio
                .IdMoneda = convertDTFromDb.convertInt32(dr.Item("IdMoneda"))
                .TipoCambio = convertDTFromDb.ConvertDecimal(dr.Item("TipoCambio"))
            End With
            Return tmpTiposcambio
        Catch ex As Exception
            Throw
        Finally
            tmpTiposcambio = Nothing
        End Try
    End Function
End Class
